<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>get_pitch_name (Pitch)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/pitch.rb, line 59</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get_pitch_name</span>(<span class="ruby-identifier">code</span>)
    <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">code</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FS'</span>
      <span class="ruby-value str">'Splitter'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'SL'</span>
      <span class="ruby-value str">'Slider'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FF'</span>
      <span class="ruby-value str">'Fastball'</span> <span class="ruby-comment cmt"># 4 seam</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FT'</span>
      <span class="ruby-value str">'Fastball'</span> <span class="ruby-comment cmt"># 2 seam</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'SI'</span>
      <span class="ruby-value str">'Sinker'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'CH'</span>
      <span class="ruby-value str">'Change'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FA'</span>
      <span class="ruby-value str">'Fastball'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'CU'</span>
      <span class="ruby-value str">'Curve'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'FC'</span>
      <span class="ruby-value str">'Cutter'</span>
    <span class="ruby-keyword kw">when</span> <span class="ruby-value str">'KN'</span>
      <span class="ruby-value str">'Knuckle'</span>
    <span class="ruby-keyword kw">else</span>
      <span class="ruby-identifier">code</span>
    <span class="ruby-keyword kw">end</span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>